package com.cn.wanxi.service;

import com.cn.wanxi.model.NewsTypeModel;

import java.util.List;

public class NewsTypeService {
    public List<NewsTypeModel> getNewsTypes(){
        NewsTypeModel newsTypeModel = new NewsTypeModel();
        for (int i = 0; i < newsTypeModel.names.length; i++) {
            NewsTypeModel newsType = new NewsTypeModel();
            newsType.setName(newsTypeModel.names[i]);
            newsTypeModel.list.add(newsType);
        }
        return newsTypeModel.list;
    }
}
